package com.blog.Bard.common.constant;

/**
 * 	数据接口返回状态码管理
 *
 */
public enum WebResultStatus {

	/**
	 * 正常状态
	 */
	status_normal("success",Integer.valueOf(0)),

	/**
	 * 异常状态
	 */
	status_error("error", Integer.valueOf(1));

	private String info;
	private Object code;

	private WebResultStatus(String info, Object code){
		this.info = info;
		this.code = code;
	}
	
	public String getInfo(){
        return this.info;
    }

    public Object getValue(){
        return this.code;
    }
	
}
